package org.yray.voide.m3u8;



import java.io.File;
import java.io.FileInputStream;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;


public class Rename {
    public static void main(String[] args) {
        File filePath=new File("E:\\txt\\s2");
        File[] files =filePath.listFiles();
        Set<Long> lenSet=new HashSet<>();
        for(File f:files)
        {
            if(lenSet.contains(f.length()))
            {
                f.delete();
                System.out.println(f.getName());
                continue;
            }
            lenSet.add(f.length());
        }
    }
}
